﻿using OpenNETCF.IoC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;

namespace IoTCM
{
    class Program : SmartClientApplication
    {
        public override void OnApplicationRun()
        {
            var server = new HttpServer();
            server.Start(81);

            while (server.IsRunning)
            {
                Thread.Sleep(500);
            }
        }

        public override IModuleInfoStore GetModuleInfoStore()
        {
            return new HostModuleLoader();
        }

        static void Main(string[] args)
        {
            new Program().Start();
        }
    }
}
